package com.liwujie.service.impl;

import com.liwujie.BO.AuthAccountInVerifyBO;
import com.liwujie.core.bean.ResultBean;
import com.liwujie.core.controller.BaseController;
import com.liwujie.core.ex.LiwujieException;
import com.liwujie.model.AuthAccount;
import com.liwujie.mapper.AuthAccountMapper;
import com.liwujie.service.IAuthAccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 统一账户信息 服务实现类
 * </p>
 *
 * @author liwujie
 * @since 2025-04-14
 */
@Service
public class AuthAccountServiceImpl extends ServiceImpl<AuthAccountMapper, AuthAccount> implements IAuthAccountService  {
    @Autowired
    private AuthAccountMapper authAccountMapper;
    @Override
    public AuthAccount verifyAccount(String username, Integer sysType) {
        //1 根据用户名查询账户信息
        AuthAccount authAccount = authAccountMapper.getByUsername(username, sysType);
        return authAccount;
    }
}
